package controllers

import (
	"XYZShell/mgotool/models"

	"github.com/astaxie/beego"
)

type DatabaseController struct {
	beego.Controller
}

func (this *DatabaseController) Get() {
	var mgotool *models.Mgotool
	mgotool = models.GetMgotool()
	dbname := this.Ctx.Input.Param(":dbname")
	this.Data["DbName"] = dbname
	this.Data["Cs"] = mgotool.CollectionNames(dbname)
	this.TplName = "database.html"
}
